<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/pages/common/header.jsp"%>
<html>
	<head>
			
	</head>
	<c:set var="couponType" value="${requestScope.couponType}"/>
	<body class="mainbody" onload="msgDisplay('${param.msgCoupon}');" >
		<div class="mainContainer">
			<section class="bodyContainer">
				<div class="productReport">
        			<h2 class="titleTxtBig">Coupon Entry</h2>
           			<p class="hrlineBr"></p>
	         		<form id="productEntryForm" method="post" action="${context}/newCoupon">
	         			<input type="hidden" name="ACTION" value="AC">
	         			<input type="hidden" name="couponApprove" value="Y">
	        			<div class="couponSfcField">
				            <div class="divclear">
				            	<span class="couponlabel">Coupon Name : </span>
				                <span class="couponinputFld"><input class="loginfld" name="couponName" type="text"></span>
				            </div>
				            <p class="spacerTopTen"></p>	
				            <div class="divclear">
		                    	<span class="couponlabel">Coupon Type : </span>
		        				<span class="abouttxtarea">
		                            <select name="couponType" class="loginSelectfld">
		               					<c:if test="${not empty fn:length(couponType)}">
											<c:forEach var="couponTypesgroup" items="${couponType}">
												<c:set var="couponTypes" value="${couponTypesgroup.key}"/>
												<c:forEach var="couponTypeValue" items="${couponTypesgroup.value}">
													<option value="${couponTypes}">${couponTypeValue.key}</option>
												</c:forEach>
											</c:forEach>
										</c:if>
		                                
		                            </select>
		                    	</span>
		                	</div>
		                	<p class="spacerTopTen"></p>
				            <div class="divclear">
				            	<span class="couponlabel">Coupon Formula: </span>
		                		<span class="couponinputFld"><input class="loginfld" name="couponFormulae" type="text"></span>
		            		</div>
		             		<p class="spacerTopTen"></p>
		            		<p class="spacerTopTen"></p> <p class="spacerTopTen"></p> <p class="spacerTopTen"></p>
	                 		<p class="spacerTopTen"></p> <p class="spacerTopTen"></p> <p class="spacerTopTen"></p>
	                 
			                <div class="divclear">
			                    <span class="loginlabel"></span>
			                    <span class="buttonSiyora button80"><a href=""><input type="submit" value="Save"/></a></span>
			                    <!-- <span class="buttonSiyora button80"><a href=""> cancel</a></span> -->
			                    <!--<span class="printBtn"><a href=""><img src="../images/printIcon.png"></a></span>-->
			                </div>
		            	 	<p class="spacerTopTen"></p> <p class="spacerTopTen"></p> <p class="spacerTopTen"></p>
		        		</div>           	
	            	</form>
            	</div>
            </section>
		</div>
		<!--main container-->
		<jsp:include page="/pages/common/footer.jsp" />
	</body>
</html>